#include<bits/stdc++.h>
using namespace std;
int a[200005];
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    ios::sync_with_stdio(0);
    int t=0;
    cin>>t;
    while(t--){
        int n;
        cin>>n;
        for(int i=1;i<=n;i++){
            cin>>a[i];
        }
        cout<<0<<endl;
    }
    return 0;
}
